package com.bitcoin.scheduler.repository;

import com.bitcoin.scheduler.domain.BccPriceInfo;
import com.bitcoin.scheduler.domain.BccPriceInfoDetail;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.Date;
import java.util.List;
import java.util.Optional;

public interface BccPriceInfoDao extends JpaRepository<BccPriceInfo, String> {
    Optional<BccPriceInfo> findTop1ByBccIdOrderByPriceTimestampDesc(String bccId);
}
